/**
 * @author rdiazalbertini
 */

QUIZ_GAME = 0;
RACE_GAME = 1;
PRACTICE_GAME = 2;

disp = [ 'c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#', 'a', 'a#', 'b' ];

semiTones={
		"m2":{"name":"Minor Second", "numSemi":"1"},
		"M2":{"name":"Major Second", "numSemi":"2"},
		"m3":{"name":"Minor Third", "numSemi":"3"},
		"M3":{"name":"Major Third", "numSemi":"4"},
		"P4":{"name":"Perfect Fourth", "numSemi":"5"},
		"a4":{"name":"Augmented Fourth/Diminished Fifth", "numSemi":"6"},
		"P5":{"name":"Perfect Fifth", "numSemi":"7"},
		"m6":{"name":"Minor Sixth", "numSemi":"8"},
		"M6":{"name":"Major Sixth", "numSemi":"9"},
		"m7":{"name":"Minor Seventh", "numSemi":"10"},
		"M7":{"name":"Major Seventh", "numSemi":"11"},
		"P8":{"name":"Octave", "numSemi":"12"}
};

keyMap = [{
			key:"a",
			sol:"la"
			
		},{
			key:"b",
			sol:"si"
			
		},{
			key:"c",
			sol:"do"
		},{
			key:"d",
			sol:"re"
			
		},{
			key:"e",
			sol:"mi"
			
		},{
			key:"f",
			sol:"fa"
			
		},{
			key:"g",
			sol:"sol"
			
		}];

altoNotes = [{
    key: "d",
    notation:"3",
    sol:"re",
    Location: "265"
}, {
    key: "e",
    notation:"3",
    sol:"mi",
    Location: "245"
}, {
    key: "f",
    notation:"3",
    sol:"fa",
    Location: "225"
}, {
    key: "g",
    notation:"3",
    sol:"sol",
    Location: "205"
}, {
    key: "a",
    notation:"3",
    sol:"la",
    Location: "185"
}, {
    key: "b",
    notation:"3",
    sol:"si",
    Location: "165"
}, {
    key: "c",
    notation:"4",
    sol:"do",
    Location: "145"
}, {
    key: "d",
    notation:"4",
    sol:"re",
    Location: "125"
}, {
    key: "e",
    notation:"4",
    sol:"mi",
    Location: "105"
}, {
    key: "f",
    notation:"4",
    sol:"fa",
    Location: "85"
}, {
    key: "g",
    notation:"4",
    sol:"sol",
    Location: "65"
}, {
    key: "a",
    notation:"4",
    sol:"la",
    Location: "45"
},{
    key: "b",
    notation:"4",
    sol:"si",
    Location: "25",
} ];

trbNotes = [{
         key: "c",
         notation:"4",
         sol:"do",
         Location: "265",
     }, {
         key: "d",
         notation:"4",
         sol:"re",
         Location: "245"
     }, {
         key: "e",
         notation:"4",
         sol:"mi",
         Location: "225"
     }, {
         key: "f",
         notation:"4",
         sol:"fa",
         Location: "205"
     }, {
         key: "g",
         notation:"4",
         sol:"sol",
         Location: "185"
     }, {
         key: "a",
         notation:"4",
         sol:"la",
         Location: "165"
     }, {
         key: "b",
         notation:"4",
         sol:"si",
         Location: "145"
     }, {
         key: "c",
         notation:"5",
         sol:"do",
         Location: "125"
     }, {
         key: "d",
         notation:"5",
         sol:"re",
         Location: "105"
     }, {
         key: "e",
         notation:"5",
         sol:"mi",
         Location: "85"
     }, {
         key: "f",
         notation:"5",
         sol:"fa",
         Location: "65"
     }, {
         key: "g",
         notation:"5",
         sol:"sol",
         Location: "45"
     }, {
         key: "a",
         notation:"5",
         sol:"la",
         Location: "25"
     }];

bssNotes = [{
         key: "e",
         notation:"2",
         sol:"mi",
         Location: "265",
     }, {
         key: "f",
         notation:"2",
         sol:"fa",
         Location: "245"
     }, {
         key: "g",
         notation:"2",
         sol:"sol",
         Location: "225"
     }, {
         key: "a",
         notation:"2",
         sol:"la",
         Location: "205"
     }, {
         key: "b",
         notation:"2",
         sol:"si",
         Location: "185"
     }, {
         key: "c",
         notation:"3",
         sol:"do",
         Location: "165"
     }, {
         key: "d",
         notation:"3",
         sol:"re",
         Location: "145"
     }, {
         key: "e",
         notation:"3",
         sol:"me",
         Location: "125"
     }, {
         key: "f",
         notation:"3",
         sol:"fa",
         Location: "105"
     }, {
         key: "g",
         notation:"3",
         sol:"sol",
         Location: "85"
     }, {
         key: "a",
         notation:"3",
         sol:"la",
         Location: "65"
     }, {
         key: "b",
         notation:"3",
         sol:"si",
         Location: "45"
     }, {
         key: "c",
         notation:"4",
         sol:"do",
         Location: "25"
     }];

arrSharp = [{
    key: "a",
    trbLocation: "165",
    bssLocation: "205",
    altoLocation:"185"
}, {
    key: "b",
    trbLocation: "145",
    bssLocation: "185",
    altoLocation:"165"
}, {
    key: "c",
    trbLocation: "125",
    bssLocation: "165",
    altoLocation:"145"
}, {
    key: "d",
    trbLocation: "105",
    bssLocation: "145",
    altoLocation:"125"
}, {
    key: "e",
    trbLocation: "85",
    bssLocation: "125",
    altoLocation:"105"
}, {
    key: "f",
    trbLocation: "65",
    bssLocation: "105",
    altoLocation:"85"
}, {
    key: "g",
    trbLocation: "45",
    bssLocation: "85",
    altoLocation:"65"
}];
